import request from '@/utils/request'

let autoApi = {

  // 获取游戏类型
  getGameTypes() {
    return request({
      url: '/H5/GetGameType',
      method: 'post',
      data: {}
    })
  },
  //获取游戏标签
  getGameTag(query) {
    return request({
      url: '/V2/H5/hotWord',
      method: 'get'
    })
  },

  //获取游戏列表
  getGameList(query) {
    return request({
      url: '/H5/GetZHList',
      method: 'get'
    })
  },

  //获取筛选列表
  getSearchList(query) {
    return request({
      url: '/V2/H5/screenList',
      method: 'get'
    })
  },

  //账号详情
  getGameAccountInfoByIdMH(query) {
    return request({
      url: '/H5/GetZHInfo',
      method: 'get'
    })
  },

  //获取属性列表
  attrTypeList(query) {
    return request({
      url: '/V2/H5/attrList',
      method: 'get',
      params: query
    })
  },

  //估值
  subValuation(query) {
    return request({
      url: '/V2/H5/valuation',
      method: 'post',
      data: query
    })
  },
  //获取角色列表
  getRoleList(query) {
    return request({
      url: '/V2/H5/roleList',
      method: 'get',
      params: query
    })
  },
  //获取角色详情
  getRoleInfo(query) {
    return request({
      url: '/V2/H5/gengerTitle',
      method: 'get',
      params: query
    })
  },

  //生成图片
  gengerImg(query) {
    return request({
      url: '/V2/H5/gengerImge',
      method: 'post',
      data: query,
      timeout: 600000
    })
  },

  //测试
  transferSearch(query) {
    return request({
      url: 'https://app.zhuanzhuan.com/zz/transfer/search',
      method: 'post',
      data: query,
      timeout: 600000,
      headers: {
        cookie: `	
        tk=9bcff43d47665045125da3851778bc4e9ac44e9d;uid=131559885363068288;lon=115.8633984953723;idfa=FB8DB0A5-5240-410D-B282-8B34916BFD78;brand=Apple;PPU="TT=b14787b99422ee907cdcd457796640b233fe7b4b&UID=131559885363068288&CT=1680765236572&SF=ZHUANZHUAN&SCT=1680768836572&V=2&ET=1683357236572&AP=16"`,
        "user-agent": `zhuanzhuan/10.8.0 (iPhone; iOS 16.2; Scale/3.00)`
      }
    })
  },
  //根据多选的ids获取选项列表
  getSelectList(query) {
    return request({
      url: '/game/attribute/allAttr',
      method: 'post',
      data: query
    })
  },
  // 获取和平营地授权二维码
  /*/V2/H5/getQRcode 755716196
yingdi    营地 755716196
authType  1  qq  2、微信*/
  getHpQRcode(query) {
    return request({
      url: '/V2/H5/getQRcode',
      method: 'get',
      params: query
    })
  },
  // 获取和平营地信息
  getHPDatacode(query) {
    return request({
      url: '/V2/H5/getHPDatacode',
      method: 'get',
      params: query,
      timeout: '180000'
    })
  },
  // 获取英雄联盟授权二维码
  /*/V2/H5/getQRcode 755716196
yingdi    营地 755716196
authType  1  qq  2、微信*/
  getLOLQRcode(query) {
    return request({
      url: '/qrCode/tdCode',
      method: 'get',
      params: query
    })
  },
  // 授权后获取token uuid type
  postToken(query) {
    return request({
      url: '/qrCode/getToken',
      method: 'get',
      params: query
    })
  },

  // 获取CF 二维码

  getCFQRcode(query) {
    return request({
      url: '/qrCode/cf/getXLLogin',
      method: 'get',
      params: query
    })
  },
  // CF授权状态查询
  getXLLoginFindRe(query) {
    return request({
      url: '/qrCode/cf/getXLLoginFindRe',
      method: 'get',
      params: query
    })
  },
  // CF数据获取
  getXLGameInfo(query) {
    return request({
      url: '/qrCode/cf/getXLGameInfo',
      method: 'get',
      params: query
    })
  },
  getWWQRcode(query) {
    return request({
      url: '/val/qrcode/tdCode',
      method: 'get',
      params: query
    })
  },
  // 授权后获取token uuid type
  postWWToken(query) {
    return request({
      url: '/val/qrcode/getToken',
      method: 'get',
      params: query
    })
  },
    // 获取金铲铲 二维码
    getJCCQRcode(query) {
      return request({
        url: '/qrcode/jcc/tdCode',
        method: 'get',
        params: query
      })
    },
    // 金铲铲数据获取
    getJccData(query) {
      return request({
        url: '/qrcode/jcc/getJccData',
        method: 'get',
        params: query
      })
    },
  

}
export default autoApi

